<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>Person JSP</title>
</head>
<body>
<jsp:useBean id="person" class="javaBeanSamples.person" scope="page">
</jsp:useBean>
<div>
    <ul>
        <li>
            姓名:<jsp:getProperty property="name" name="person"/>
        </li>
        <li>
            性别: <jsp:getProperty property="sex" name="person"/>
        </li>
        <li>
            年龄: <jsp:getProperty property="age" name="person"/>
        </li>
        <li>
            已婚:<jsp:getProperty property="married" name="person"/>
        </li>
    </ul>
</div>
</body>
</html>